if exists(select name from sysobjects where name = 'sp_LoaiSanPhamGetAll')
	drop proc sp_LoaiSanPhamGetAll
go
/*-- =============================================
	Created by: HP
	Created on: 2014-03-14 (dd/mm/yyyy)
	Description: 
	--

	File:$sql-scripts/Proc.sp_LoaiSanPhamGetAll.sql
*/-- =============================================

CREATE PROCEDURE sp_LoaiSanPhamGetAll

AS
BEGIN
	SELECT
		a.[Id],
		a.[TenNhomSanPham],
		a.[IdCha],
		a.[ThuTu],
		a.[TrangThai]
	FROM
        LoaiSanPham a where TrangThai<>255 order by ThuTu
END
GO
